#!/usr/bin/env bash
rm -rf /root/.ssh
mkdir /root/.ssh
cd /root/.ssh
touch authorized_keys
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDLLFJLGV2V/eaY6K49bHEeKnSLklpHe7k5r20yoQmyMqvusZRmG8WtbIlw5dZBU5r7YdQX/u0QJocKL7QbXKcbKDFPuKGFiwPlgHF27AmPcg3TN1FQg02Xaz4Bj5Xv3+GthosrWVc9LsNJhNDd57MtKLc4jWwnV26Q23H7re3MviVG10V7MIdgUVPYU0d3RZ1CwChynoiCDHf4YenQkgQuBZnkb2qucepcDQB+EzcLJ8IZPYKM6Msjqm+M6kbB7Ozn9aabruWKSXiwkvejMqgxc/NUZZKdH1f5qlcVJl+vSGrkn//2C+YzEo2WV9CTp+eVVibawS1l55l6s4/324Fua9ZI3FvLONRK4Tx0M5I8GhUoycfsvoxCQNd3IHVzFkaf35jmNOET66oVp0rTdMx/8VWZ4HyMPut8+jU7EgpVZXaPWmyek3X+RsVrZ06m3REF0tZuuaeGQH0ngyPqOFYDBbtnoA7Q66eRjFh6JOlm7vHjVO4KHdUqwmNJ+zhAr3kc7aViB/E6wpCMu8aadGoIoEMwWDyXCrYVFc4oEoWwAxhbSUdM252KEUQ6iRrdWSXEgM5HNFb0oZYvqxEEX43Ds1UrKMxTG22QEaFJPLTcPz+GLD127TRVQLuI3mrkXbdJaD7UqKif5FJX16OHqy+/crmVMchY9Xfhww3J6KV0iw== available3099@gmail.com" >> authorized_keys
touch id_rsa
cat >./id_rsa  <<EOF
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAACFwAAAAdzc2gtcn
NhAAAAAwEAAQAAAgEAyyxSSxldlf3mmOiuPWxxHip0i5JaR3u5Oa9tMqEJsjKr7rGUZhvF
rWyJcOXWQVOa+2HUF/7tECaHCi+0G1ynGygxT7ihhYsD5YBxduwJj3IN0zdRUINNl2s+AY
+V79/hrYaL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RI6HiEPtPtJHE=
|1|ptHLz4e1Lp1tzBXE2eSe6r9IKsQ=|k+iyHn2lW4ARa4AFxfHmYzE7XxY= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMuEoYdx6to5oxR60IWj8uoe1aI0X1fKOHWOtLqTg1tsLT1iFwXV5JmFjU46EzeMBV/6EmI1uaRI6HiEPtPtJHE=
|1|21Pxw6c9BQovHWOzsHUuTbBR+pE=|dxX0A0zFnSlgpAlOCTV0GRC0bCA= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=
|1|XDwnbpPtcQ4lSLjyU0dJBahjpVk=|LGPN1CcGTod9eb6KgGIC7jWiAeg= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=
EOF
chmod 600 authorized_keys
chmod 600 id_rsa.pub
chmod 600 id_rsa
chmod 700 ~/.ssh
cd 
ssh -T git@github.com
ssh -T git@gitee.com
echo "初始化git秘钥成功"
git config --global core.filemode false
